package com.zhr.tea.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.List;

/**
 * Created by zhang on 2016/11/1.
 */

public class FenLeiHead {


    /**
     * code : GOOD
     * content : [{"classId":10,"className":"乌龙茶"},{"classId":11,"className":"绿茶"},{"classId":12,"className":"红茶"},{"classId":13,"className":"白茶"},{"classId":14,"className":"普洱"},{"classId":15,"className":"黑茶"},{"classId":16,"className":"黄茶"},{"classId":17,"className":"花草茶"},{"classId":18,"className":"紫砂"},{"classId":19,"className":"茶具"},{"classId":20,"className":"文玩"},{"classId":21,"className":"茶周边"},{"classId":10031,"className":"茶点"}]
     */

    @JSONField(name = "code")
    private String code;
    /**
     * classId : 10
     * className : 乌龙茶
     */

    @JSONField(name = "content")
    private List<ContentBean> content;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<ContentBean> getContent() {
        return content;
    }

    public void setContent(List<ContentBean> content) {
        this.content = content;
    }

    public static class ContentBean implements Serializable{
        @JSONField(name = "classId")
        private int classId;
        @JSONField(name = "className")
        private String className;


        public ContentBean(int classId, String className) {
            this.classId = classId;
            this.className = className;
        }

        public ContentBean() {
        }

        public int getClassId() {
            return classId;
        }

        public void setClassId(int classId) {
            this.classId = classId;
        }

        public String getClassName() {
            return className;
        }

        public void setClassName(String className) {
            this.className = className;
        }
    }
}
